package com.cwj.common.test.Aop;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Order(0)
public class testAop {
    @Pointcut("execution(* com.cwj.common.test.service.testIntFace.t1(..))")
    private void po(){ };
    @AfterThrowing("po()")
    public Boolean tt() throws Exception{
        System.out.println("异常");
        return false;
    }
    @AfterReturning("po()")
    public Boolean aa(){
        System.out.println("正常");
        return false;
    }
}
